package CollectionDemo;

import java.util.LinkedHashSet;

public class LinkedHashSetTest {
    public static void main(String[] args) {
        LinkedHashSet hashSet = new LinkedHashSet();
        hashSet.add("十七");
        hashSet.add("的先生");
        System.out.println(hashSet);
        hashSet.remove("十七");
        hashSet.add("十七");
        System.out.println(hashSet);
    }
}
